package cn.bj.xd.mdy.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum FilterTypeEnum {
    Default(0, "Default", "默认"),
    Like(1, "Like", "包含"),
    Eq(2, "Eq", "是（等于）"),
    Start(3, "Start", "开头为"),
    End(4, "End", "结尾为"),
    NContain(5, "NContain", "不包含"),
    Ne(6, "Ne", "不是（不等于）"),
    IsNull(7, "IsNull", "为空"),
    HasValue(8, "HasValue", "不为空"),
    Between(11, "Between", "在范围内"),
    NBetween(12, "NBetween", "不在范围内"),
    Gt(13, "Gt", ">"),
    Gte(14, "Gte", ">="),
    Lt(15, "Lt", "<"),
    Lte(16, "Lte", "<="),
    DateEnum(17, "DateEnum", "日期是"),
    NDateEnum(18, "NDateEnum", "日期不是"),
    MySelf(21, "MySelf", "我拥有的"),
    UnRead(22, "UnRead", "未读"),
    Sub(23, "Sub", "下属"),
    RCEq(24, "RCEq", "关联控件是"),
    RCNe(25, "RCNe", "关联控件不是"),
    ArrEq(26, "ArrEq", "数组等于"),
    ArrNe(27, "ArrNe", "数组不等于"),
    DateBetween(31, "DateBetween", "在范围内（日期）"),
    DateNBetween(32, "DateNBetween", "不在范围内（日期）"),
    DateGt(33, "DateGt", ">（日期）"),
    DateGte(34, "DateGte", ">="),
    DateLt(35, "DateLt", "<（日期）"),
    DateLte(36, "DateLte", "<="),
    NormalUser(41, "NormalUser", "常规用户"),
    PortalUser(42, "PortalUser", "外部门户用户");

    @JsonValue
    private final Integer value;
    private final String name;
    private final String desc;

    FilterTypeEnum(Integer value, String name, String desc) {
        this.value = value;
        this.name = name;
        this.desc = desc;
    }

}
